!function(e){jQuery.browser={},jQuery.browser.mozilla=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase()),jQuery.browser.webkit=/webkit/.test(navigator.userAgent.toLowerCase()),jQuery.browser.opera=/opera/.test(navigator.userAgent.toLowerCase()),jQuery.browser.msie=/msie/.test(navigator.userAgent.toLowerCase()),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,i=Number(arguments[1])||0;for((i=i<0?Math.ceil(i):Math.floor(i))<0&&(i+=t);i").appendTo("body").css({display:"none",width:0,height:0,overflow:"hidden"});for(var i=0;t.length>i;i++)e.ajax({url:t[i],type:"HEAD",complete:function(e){r||(l++,v(this.url))}})},v=function(t){e("").attr("src",t).bind("load error",function(){c()}).appendTo(n)},c=function(){var t=++i/l*100;e(s).stop().animate({width:t+"%",minWidth:t+"%"},200),1==g.percentage&&e(o).text(Math.ceil(t)+"%"),i==l&&p()},p=function(){e(n).remove(),g.onLoadComplete(),r=!0},b=function(){a=e("#qLoverlay");var i="visible";difference_two=0,"off"===g.showbar&&(i="hidden",199,difference_two=99),""!==preloader_settings.loader_logo&&"style_eight"!==preloader_settings.style&&e("").appendTo(a.children(".ut-inner-overlay")),"style_one"===preloader_settings.style&&"on"===g.showbar&&(s=e("
").css({height:g.barHeight+"px",backgroundColor:g.barColor,width:"0%",marginTop:"20px",marginBottom:"20px",visibility:i}).appendTo(a.children(".ut-inner-overlay"))),"style_two"===preloader_settings.style&&e("

"+preloader_settings.loader_text+"

").appendTo(a.children(".ut-inner-overlay")),"style_three"===preloader_settings.style&&e("

"+preloader_settings.loader_text+"

").appendTo(a.children(".ut-inner-overlay")),"style_four"===preloader_settings.style&&(e("#ut-loader-logo").addClass("ut-style4-active"),e("

"+preloader_settings.loader_text+"

").appendTo(a.children(".ut-inner-overlay"))),"style_five"===preloader_settings.style&&e("

"+preloader_settings.loader_text+"

").appendTo(a.children(".ut-inner-overlay")),"style_six"===preloader_settings.style&&e('

').appendTo(a.children(".ut-inner-overlay")),"style_seven"===preloader_settings.style&&e('
').appendTo(a.children(".ut-inner-overlay")),"style_eight"===preloader_settings.style&&e(preloader_settings.text_logo).appendTo(a.children(".ut-inner-overlay")),"on"===preloader_settings.loader_percentage&&"style_one"===preloader_settings.style&&(o=e("
").text("0%").css({textAlign:"center",marginTop:"20px",color:g.textColor}).appendTo(a.children(".ut-inner-overlay"))),t.length||p()},h=function(i){r="";if("none"!=e(i).css("background-image"))r=e(i).css("background-image");else if(void 0!==e(i).attr("src")&&"img"==i.nodeName.toLowerCase())var r=e(i).attr("src");if(-1==r.indexOf("gradient"))for(var n=(r=(r=(r=(r=r.replace(/url\(\"/g,"")).replace(/url\(/g,"")).replace(/\"\)/g,"")).replace(/\)/g,"")).split(", "),a=0;a0&&-1==t.indexOf(n[a])&&!n[a].match(/^(data:)/i)){var s="";e.browser.msie&&e.browser.version<9&&(s="?"+Math.floor(3e3*Math.random())),t.push(n[a]+s)}};e.fn.queryLoader2=function(t){return t&&e.extend(g,t),this.each(function(){h(this),1==g.deepSearch&&e(this).find("*:not(script)").each(function(){h(this)})}),function(){var e=new Date;d=e.getTime(),u(),b()}(),this};var y={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version",this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(e){for(var t=0;t"+n+"").attr({class:"keyframe-style",id:t,type:"text/css"}).appendTo("head")};e.keyframe={debug:!1,getVendorPrefix:function(){return i},isSupported:function(){return t},generate:function(t){var r=t.name||"",o="@"+i+"keyframes "+r+" {";for(var s in t)if("name"!==s&&"media"!==s&&"complete"!==s){o+=s+" {";for(var l in t[s])o+=l+":"+t[s][l]+";";o+="}"}window.PrefixFree?o=PrefixFree.prefixCSS(o+"}"):o+="}",t.media&&(o="@media "+t.media+"{"+o+"}");var c=e("style#"+t.name);if(c.length>0){c.html(o);e("*").filter(function(){return this.style[n+"Name"]===r}).each(function(){var t=e(this),n=t.data("keyframeOptions");t.resetKeyframe(function(){t.playKeyframe(n)})})}else a(r,o)},define:function(e){if(e.length)for(var t=0;te._pfLastSize)&&(e._pfLastSize=e.offsetWidth,i=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=i}))},r=function(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e2.7?o=n+1:(a=(t-n)*(r=Math.pow(e-.6,1.5)),i&&(a+=.1*r),o=e+a):o=n>1?Math.sqrt(e*t):e,o>n}function a(e,t){return e.res-t.res}function o(e,t){var n,i,r;if(e&&t)for(r=u.parseSet(t),e=u.makeUrl(e),n=0;n35,x="currentSrc",A=/\s+\+?\d+(e\d+)?w/,S=/(\([^)]+\))?\s*(.+)/,T=e.picturefillCFG,C="font-size:100%!important;",I=!0,E={},N={},k=e.devicePixelRatio,P={px:1,in:96},M=t.createElement("a"),O=!1,z=/^[ \t\n\r\u000c]+/,L=/^[, \t\n\r\u000c]+/,j=/^[^ \t\n\r\u000c]+/,W=/[,]+$/,_=/^\d+$/,D=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,q=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Q=function(e){var t={};return function(n){return n in t||(t[n]=e(n)),t[n]}},H=function(){var e=/^([\d\.]+)(em|vw|px)$/,t=Q(function(e){return"return "+function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(n,i){var r;if(!(n in E))if(E[n]=!1,i&&(r=n.match(e)))E[n]=r[1]*P[r[2]];else try{E[n]=new Function("e",t(n))(P)}catch(e){}return E[n]}}(),F=function(e,t){return e.w?(e.cWidth=u.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e},B=function(e){var n,i,r,a=e||{};if(a.elements&&1===a.elements.nodeType&&("IMG"===a.elements.nodeName.toUpperCase()?a.elements=[a.elements]:(a.context=a.elements,a.elements=null)),n=a.elements||u.qsa(a.context||t,a.reevaluate||a.reselect?u.sel:u.selShort),r=n.length){for(u.setupRun(a),O=!0,i=0;iimg,img[srcset]",u.sel=u.selShort,u.cfg=y,u.supSrcset&&(u.sel+=",img[data-pfsrcset]"),u.DPR=k||1,u.u=P,u.types=g,l=u.supSrcset&&!u.supSizes,u.setSize=d,u.makeUrl=Q(function(e){return M.href=e,M.href}),u.qsa=function(e,t){return e.querySelectorAll(t)},u.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width:0.1em)")||{}).matches?u.matchesMedia=function(e){return!e||matchMedia(e).matches}:u.matchesMedia=u.mMQ,u.matchesMedia.apply(this,arguments)},u.mMQ=function(e){return!e||H(e)},u.calcLength=function(e){var t=H(e,!0)||!1;return t<0&&(t=!1),t},u.supportsType=function(e){return!e||g[e]},u.parseSize=Q(function(e){var t=(e||"").match(S);return{media:t&&t[1],length:t&&t[2]}}),u.parseSet=function(e){return e.cands||(e.cands=function(e,t){function n(t){var n,i=t.exec(e.substring(f));if(i)return n=i[0],f+=n.length,n}function r(){var e,n,i,r,a,l,c,u,d,f=!1,h={};for(r=0;r=d)return p;o=n(j),s=[],","===o.slice(-1)?(o=o.replace(W,""),r()):a()}}(e.srcset,e)),e.cands},u.getEmValue=function(){var e;if(!s&&(e=t.body)){var n=t.createElement("div"),i=m.style.cssText,r=e.style.cssText;n.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",m.style.cssText=C,e.style.cssText=C,e.appendChild(n),s=n.offsetWidth,e.removeChild(n),s=parseFloat(s,10),m.style.cssText=i,e.style.cssText=r}return s||16},u.calcListLength=function(e){if(!(e in N)||y.uT){var t=u.calcLength(function(e){function t(e){return!!(c.test(e)&&parseFloat(e)>=0)||!!d.test(e)||"0"===e||"-0"===e||"+0"===e}var n,r,a,o,s,l,c=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,d=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(a=(r=function(e){function t(){a&&(o.push(a),a="")}function n(){o[0]&&(s.push(o),o=[])}for(var r,a="",o=[],s=[],l=0,c=0,u=!1;;){if(""===(r=e.charAt(c)))return t(),n(),s;if(u){if("*"===r&&"/"===e[c+1]){u=!1,c+=2,t();continue}c+=1}else{if(i(r)){if(e.charAt(c-1)&&i(e.charAt(c-1))||!a){c+=1;continue}if(0===l){t(),c+=1;continue}r=" "}else if("("===r)l+=1;else if(")"===r)l-=1;else{if(","===r){t(),n(),c+=1;continue}if("/"===r&&"*"===e.charAt(c+1)){u=!0,c+=2;continue}}a+=r,c+=1}}}(e)).length,n=0;nm)||(f.cached=!0,f.res>=m&&(c=f))),!c)for(e.sort(a),c=e[(l=e.length)-1],i=0;i=m){c=e[s=i-1]&&(h||d!==u.makeUrl(n.url))&&r(e[s].res,n.res,m,e[s].cached)?e[s]:n;break}c&&(p=u.makeUrl(c.url),v.curSrc=p,v.curCan=c,p!==d&&u.setSrc(t,c),u.setSize(t))}},u.setSrc=function(e,t){var n;e.src=t.url,"image/svg+xml"===t.set.type&&(n=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=n))},u.getSet=function(e){var t,n,i,r=!1,a=e[u.ns].sets;for(t=0;t1;return s&&(a/=2),o.offset=n(o.offset),o.over=n(o.over),this.each(function(){function l(t){var n=e.extend({},o,{queue:!0,duration:a,complete:t&&function(){t.call(d,p,o)}});f.animate(h,n)}if(null!==r){var c,u=t(this),d=u?this.contentWindow||window:this,f=e(d),p=r,h={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=n(p);break}p=u?e(p):e(p,d);case"object":if(0===p.length)return;(p.is||p.style)&&(c=(p=e(p)).offset())}var v=e.isFunction(o.offset)&&o.offset(d,p)||o.offset;e.each(o.axis.split(""),function(e,t){var n="x"===t?"Left":"Top",r=n.toLowerCase(),a="scroll"+n,m=f[a](),g=i.max(d,t);if(c)h[a]=c[r]+(u?0:m-f.offset()[r]),o.margin&&(h[a]-=parseInt(p.css("margin"+n),10)||0,h[a]-=parseInt(p.css("border"+n+"Width"),10)||0),h[a]+=v[r]||0,o.over[r]&&(h[a]+=p["x"===t?"width":"height"]()*o.over[r]);else{var y=p[r];h[a]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*g:y}o.limit&&/^\d+$/.test(h[a])&&(h[a]=h[a]<=0?0:Math.min(h[a],g)),!e&&o.axis.length>1&&(m===h[a]?h={}:s&&(l(o.onAfterFirst),h={}))}),l(o.onAfter)}})},i.max=function(n,i){var r="x"===i?"Width":"Height",a="scroll"+r;if(!t(n))return n[a]-e(n)[r.toLowerCase()]();var o="client"+r,s=n.ownerDocument||n.document,l=s.documentElement,c=s.body;return Math.max(l[a],c[a])-Math.min(l[o],c[o])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var i=Math.round(t.now);n!==i&&(e(t.elem)[t.prop](i),t._last=this.get(t))}},i}),function(e,t){"use strict";jQuery.fn[t]=function(e){return e?this.bind("resize",function(e,t,n){var i="";return function(){var r=this,a=arguments;i?clearTimeout(i):n&&e.apply(r,a),i=setTimeout(function(){n||e.apply(r,a),i=null},t||100)}}(e)):this.trigger(t)}}(jQuery,"utresize"),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?exports=e(require("jquery")):e(jQuery)}(function(e){function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}e.easing.jswing=e.easing.swing;var n=Math.pow,i=Math.sqrt,r=Math.sin,a=Math.cos,o=Math.PI,s=1.70158,l=1.525*s,c=2*o/3,u=2*o/4.5;e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-n(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-n(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-n(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-n(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-n(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-n(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-n(-2*e+2,5)/2},easeInSine:function(e){return 1-a(e*o/2)},easeOutSine:function(e){return r(e*o/2)},easeInOutSine:function(e){return-(a(o*e)-1)/2},easeInExpo:function(e){return 0===e?0:n(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-n(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?n(2,20*e-10)/2:(2-n(2,-20*e+10))/2},easeInCirc:function(e){return 1-i(1-n(e,2))},easeOutCirc:function(e){return i(1-n(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-i(1-n(2*e,2)))/2:(i(1-n(-2*e+2,2))+1)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-n(2,10*e-10)*r((10*e-10.75)*c)},easeOutElastic:function(e){return 0===e?0:1===e?1:n(2,-10*e)*r((10*e-.75)*c)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-n(2,20*e-10)*r((20*e-11.125)*u)/2:n(2,-20*e+10)*r((20*e-11.125)*u)/2+1},easeInBack:function(e){return 2.70158*e*e*e-s*e*e},easeOutBack:function(e){return 1+2.70158*n(e-1,3)+s*n(e-1,2)},easeInOutBack:function(e){return e<.5?n(2*e,2)*(7.189819*e-l)/2:(n(2*e-2,2)*((l+1)*(2*e-2)+l)+2)/2},easeInBounce:function(e){return 1-t(1-e)},easeOutBounce:t,easeInOutBounce:function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}})}),function(e){"use strict";e.fn.fitVids=function(t){var n={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='

x

',i.appendChild(r.childNodes[1])}return t&&e.extend(n,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];n.customSelector&&t.push(n.customSelector);var i=".fitvidsignore";n.ignore&&(i=i+", "+n.ignore);var r=e(this).find(t.join(","));(r=(r=r.not("object object")).not(i)).each(function(){var t=e(this);if(!t.hasClass("jwswf")&&!(t.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16));var n=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10));if(!t.attr("id")){var r="fitvid"+e.fn.fitVids._count;t.attr("name",r),e.fn.fitVids._count++}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),t.removeAttr("height").removeAttr("width")}})})},e.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e,t,n,i){var r=e(t);e.fn.lazyload=function(i){function a(){var t=0;s.each(function(){var n=e(this);if(!l.skip_invisible||n.is(":visible"))if(e.abovethetop(this,l)||e.leftofbegin(this,l));else if(e.belowthefold(this,l)||e.rightoffold(this,l)){if(++t>l.failure_limit)return!1}else n.trigger("appear"),t=0})}var o,s=this,l={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return i&&(void 0!==i.failurelimit&&(i.failure_limit=i.failurelimit,delete i.failurelimit),void 0!==i.effectspeed&&(i.effect_speed=i.effectspeed,delete i.effectspeed),e.extend(l,i)),o=void 0===l.container||l.container===t?r:e(l.container),0===l.event.indexOf("scroll")&&o.bind(l.event,function(){return a()}),this.each(function(){var t=this,n=e(t);t.loaded=!1,void 0!==n.attr("src")&&!1!==n.attr("src")||n.is("img")&&n.attr("src",l.placeholder),n.one("appear",function(){if(!this.loaded){if(l.appear){var i=s.length;l.appear.call(t,i,l)}e("").bind("load",function(){var i=n.attr("data-"+l.data_attribute);n.hide(),n.is("img")?n.attr("src",i):n.css({"background-image":"url('"+i+"')","background-size":"cover","background-position":"center center"}),t.loaded=!0;var r=e.grep(s,function(e){return!e.loaded});if(s=e(r),l.load){var a=s.length;l.load.call(t,a,l)}}).attr("src",n.attr("data-"+l.data_attribute))}}),0!==l.event.indexOf("scroll")&&n.bind(l.event,function(){t.loaded||n.trigger("appear")})}),r.bind("resize",function(){a()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&r.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&s.each(function(){e(this).trigger("appear")})}),e(n).ready(function(){a()}),this},e.belowthefold=function(n,i){return(void 0===i.container||i.container===t?(t.innerHeight?t.innerHeight:r.height())+r.scrollTop():e(i.container).offset().top+e(i.container).height())<=e(n).offset().top-i.threshold},e.rightoffold=function(n,i){return(void 0===i.container||i.container===t?r.width()+r.scrollLeft():e(i.container).offset().left+e(i.container).width())<=e(n).offset().left-i.threshold},e.abovethetop=function(n,i){return(void 0===i.container||i.container===t?r.scrollTop():e(i.container).offset().top)>=e(n).offset().top+i.threshold+e(n).height()},e.leftofbegin=function(n,i){return(void 0===i.container||i.container===t?r.scrollLeft():e(i.container).offset().left)>=e(n).offset().left+i.threshold+e(n).width()},e.inviewport=function(t,n){return!(e.rightoffold(t,n)||e.leftofbegin(t,n)||e.belowthefold(t,n)||e.abovethetop(t,n))},e.extend(e.expr[":"],{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}(jQuery,window,document),function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;t=0,s={horizontal:{},vertical:{}},l=1,u={},c="waypoints-context-id",h="resize.waypoints",v="scroll.waypoints",m=1,g="waypoints-waypoint-ids",y="waypoint",w="waypoints",a=function(){function e(e){var t=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[c]=this.id,u[this.id]=this,e.bind(v,function(){var e;if(!t.didScroll&&!d)return t.didScroll=!0,e=function(){return t.doScroll(),t.didScroll=!1},i.setTimeout(e,n[w].settings.scrollThrottle)}),e.bind(h,function(){var e;if(!t.didResize)return t.didResize=!0,e=function(){return n[w]("refresh"),t.didResize=!1},i.setTimeout(e,n[w].settings.resizeThrottle)})}return e.prototype.doScroll=function(){var e,t=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!d||e.vertical.oldScroll&&e.vertical.newScroll||n[w]("refresh"),n.each(e,function(e,i){var r,a,o;return o=[],a=i.newScroll>i.oldScroll,r=a?i.forward:i.backward,n.each(t.waypoints[e],function(e,t){var n,r;return i.oldScroll<(n=t.offset)&&n<=i.newScroll?o.push(t):i.newScroll<(r=t.offset)&&r<=i.oldScroll?o.push(t):void 0}),o.sort(function(e,t){return e.offset-t.offset}),a||o.reverse(),n.each(o,function(e,t){if(t.options.continuous||e===o.length-1)return t.trigger([r])})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,t,i,r=this;return i=n.isWindow(this.element),t=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:i?0:t.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:t.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[w]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(e,function(e,t){return n.each(r.waypoints[e],function(e,i){var r,a,o,s,l;if(r=i.options.offset,o=i.offset,a=n.isWindow(i.element)?0:i.$element.offset()[t.offsetProp],n.isFunction(r)?r=r.apply(i.element):"string"==typeof r&&(r=parseFloat(r),i.options.offset.indexOf("%")>-1&&(r=Math.ceil(t.contextDimension*r/100))),i.offset=a-t.contextOffset+t.contextScroll-r,(!i.options.onlyOnScroll||null==o)&&i.enabled)return null!==o&&o<(s=t.oldScroll)&&s<=i.offset?i.trigger([t.backward]):null!==o&&o>(l=t.oldScroll)&&l>=i.offset?i.trigger([t.forward]):null===o&&t.oldScroll>=i.offset?i.trigger([t.forward]):void 0})})},e.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([h,v].join(" ")),delete u[this.id]},e}(),o=function(){function e(e,t,i){var r,a;"bottom-in-view"===i.offset&&(i.offset=function(){var e;return e=n[w]("viewportHeight"),n.isWindow(t.element)||(e=t.$element.height()),e-n(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=t,this.enabled=i.enabled,this.id="waypoints"+m++,this.offset=null,this.options=i,t.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,(r=null!=(a=this.element[g])?a:[]).push(this.id),this.element[g]=r}return e.prototype.trigger=function(e){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var t,i;return(i=e[g])?(t=n.extend({},s.horizontal,s.vertical),n.map(i,function(e){return t[e]})):[]},e}(),p={init:function(e,t){return t=n.extend({},n.fn[y].defaults,t),null==t.handler&&(t.handler=e),this.each(function(){var e,i,r,s;return e=n(this),r=null!=(s=t.context)?s:n.fn[y].defaults.context,n.isWindow(r)||(r=e.closest(r)),r=n(r),(i=u[r[0][c]])||(i=new a(r)),new o(e,i,t)}),n[w]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(e,t){return p._traverse.call(this,e,t,function(e,t,n){if(t>0)return e.push(n[t-1])})},next:function(e,t){return p._traverse.call(this,e,t,function(e,t,n){if(te.oldScroll.y})},left:function(e){return null==e&&(e=i),f._filter(e,"horizontal",function(e,t){return t.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=i),f._filter(e,"horizontal",function(e,t){return t.offset>e.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(e,t){return p[e]=t},_invoke:function(e){var t;return t=n.extend({},s.vertical,s.horizontal),n.each(t,function(t,n){return n[e](),!0})},_filter:function(e,t,i){var r,a;return(r=u[n(e)[0][c]])?(a=[],n.each(r.waypoints[t],function(e,t){if(i(r,t))return a.push(t)}),a.sort(function(e,t){return e.offset-t.offset}),n.map(a,function(e){return e.element})):[]}},n[w]=function(){var e,n;return n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],f[n]?f[n].apply(null,e):f.aggregate.call(null,n)},n[w].settings={resizeThrottle:100,scrollThrottle:30},r.on("load.waypoints",function(){return n[w]("refresh")})})}.call(this),function(e){e.flexslider=function(t,n,i){var r=e(t);r.vars=e.extend({},e.flexslider.defaults,n);var a,o=r.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,c="click"+r.vars.eventNamespace+" touchend"+r.vars.eventNamespace+" MSPointerUp"+r.vars.eventNamespace,u="",d="vertical"===r.vars.direction,f=r.vars.reverse,p=r.vars.itemWidth>0,h="fade"===r.vars.animation,v=""!==r.vars.asNavFor,m={},i=void 0!==i?i++:0;e.data(t,"flexslider",r),m={init:function(){r.id=i,r.animating=!1,r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10),isNaN(r.currentSlide)&&(r.currentSlide=0),r.animatingTo=r.currentSlide,r.atEnd=0===r.currentSlide||r.currentSlide===r.last,r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" ")),r.slides=e(r.vars.selector,r),r.container=e(r.containerSelector,r),r.count=r.slides.length,r.syncExists=e(r.vars.sync).length>0,"slide"===r.vars.animation&&(r.vars.animation="swing"),r.prop=d?"top":"marginLeft",r.args={},r.manualPause=!1,r.stopped=!1,r.started=!1,r.startTimeout=null,r.transitions=!r.vars.video&&!h&&r.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return r.pfx=t[n].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}(),""!==r.vars.controlsContainer&&(r.controlsContainer=e(r.vars.controlsContainer).length>0&&e(r.vars.controlsContainer)),""!==r.vars.manualControls&&(r.manualControls=e(r.vars.manualControls).length>0&&e(r.vars.manualControls)),r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides)),r.doMath(),r.setup("init"),r.vars.controlNav&&m.controlNav.setup(),r.vars.directionNav&&m.directionNav.setup(),r.vars.keyboard&&(1===e(r.containerSelector).length||r.vars.multipleKeyboard)&&e(document).bind("keyup"+r.vars.eventNamespace+"-"+r.id,function(e){var t=e.keyCode;if(!r.animating&&(39===t||37===t)){var n=39===t?r.getTarget("next"):37===t&&r.getTarget("prev");r.flexAnimate(n,r.vars.pauseOnAction)}}),r.vars.mousewheel&&r.bind("mousewheel"+r.vars.eventNamespace,function(e,t,n,i){e.preventDefault();var a=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(a,r.vars.pauseOnAction)}),r.vars.pausePlay&&m.pausePlay.setup(),r.vars.slideshow&&r.vars.pauseInvisible&&m.pauseInvisible.init(),r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&m.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play())),v&&m.asNav.setup(),l&&r.vars.touch&&m.touch(),(!h||h&&r.vars.smoothHeight)&&e(window).bind("resize"+r.vars.eventNamespace+"-"+r.id+" orientationchange"+r.vars.eventNamespace+"-"+r.id+" focus"+r.vars.eventNamespace+"-"+r.id,m.resize),r.find("img").attr("draggable","false"),setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(o+"active-slide").eq(r.currentItem).addClass(o+"active-slide"),s?(t._slider=r,r.slides.each(function(){this._gesture=new MSGesture,this._gesture.target=this,this.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),this.addEventListener("MSGestureTap",function(t){t.preventDefault();var n=e(this),i=n.index();e(r.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(r.direction=r.currentItem'),r.pagingCount>1)for(var s=0;s':""+a+"","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions){var l=n.attr("data-thumbcaption");""!=l&&void 0!=l&&(t+=''+l+"")}r.controlNavScaffold.append("
  • "+t+"
  • "),a++}r.controlsContainer?e(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold),m.controlNav.set(),m.controlNav.active(),r.controlNavScaffold.delegate("a, img",c,function(t){if(t.preventDefault(),""===u||u===t.type){var n=e(this),i=r.controlNav.index(n);n.hasClass(o+"active")||(r.direction=i>r.currentSlide?"next":"prev",r.flexAnimate(i,r.vars.pauseOnAction))}""===u&&(u=t.type),m.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls,m.controlNav.active(),r.controlNav.bind(c,function(t){if(t.preventDefault(),""===u||u===t.type){var n=e(this),i=r.controlNav.index(n);n.hasClass(o+"active")||(i>r.currentSlide?r.direction="next":r.direction="prev",r.flexAnimate(i,r.vars.pauseOnAction))}""===u&&(u=t.type),m.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===r.vars.controlNav?"img":"a";r.controlNav=e("."+o+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(o+"active").eq(r.animatingTo).addClass(o+"active")},update:function(t,n){r.pagingCount>1&&"add"===t?r.controlNavScaffold.append(e("
  • "+r.count+"
  • ")):1===r.pagingCount?r.controlNavScaffold.find("li").remove():r.controlNav.eq(n).closest("li").remove(),m.controlNav.set(),r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(n,t):m.controlNav.active()}},directionNav:{setup:function(){var t=e('");r.controlsContainer?(e(r.controlsContainer).append(t),r.directionNav=e("."+o+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=e("."+o+"direction-nav li a",r)),m.directionNav.update(),r.directionNav.bind(c,function(t){t.preventDefault();var n;""!==u&&u!==t.type||(n=e(this).hasClass(o+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(n,r.vars.pauseOnAction)),""===u&&(u=t.type),m.setToClearWatchedEvent()})},update:function(){var e=o+"disabled";1===r.pagingCount?r.directionNav.addClass(e).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(e).removeAttr("tabindex"):0===r.animatingTo?r.directionNav.removeClass(e).filter("."+o+"prev").addClass(e).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(e).filter("."+o+"next").addClass(e).attr("tabindex","-1"):r.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('
    ');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=e("."+o+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=e("."+o+"pauseplay a",r)),m.pausePlay.update(r.vars.slideshow?o+"pause":o+"play"),r.pausePlay.bind(c,function(t){t.preventDefault(),""!==u&&u!==t.type||(e(this).hasClass(o+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play())),""===u&&(u=t.type),m.setToClearWatchedEvent()})},update:function(e){"play"===e?r.pausePlay.removeClass(o+"pause").addClass(o+"play").html(r.vars.playText):r.pausePlay.removeClass(o+"play").addClass(o+"pause").html(r.vars.pauseText)}},touch:function(){var e,n,i,a,o,l,c,u,v=!1,m=0,g=0,y=0;s?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",function(e){e.stopPropagation(),r.animating?e.preventDefault():(r.pause(),t._gesture.addPointer(e.pointerId),y=0,a=d?r.h:r.w,l=Number(new Date),i=p&&f&&r.animatingTo===r.last?0:p&&f?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:p&&r.currentSlide===r.last?r.limit:p?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:f?(r.last-r.currentSlide+r.cloneOffset)*a:(r.currentSlide+r.cloneOffset)*a)},!1),t._slider=r,t.addEventListener("MSGestureChange",function(e){e.stopPropagation();var n=e.target._slider;if(n){var r=-e.translationX,s=-e.translationY;o=y+=d?s:r,v=d?Math.abs(y)500)&&(e.preventDefault(),!h&&n.transitions&&(n.vars.animationLoop||(o=y/(0===n.currentSlide&&y<0||n.currentSlide===n.last&&y>0?Math.abs(y)/a+2:1)),n.setProps(i+o,"setTouch"))):setImmediate(function(){t._gesture.stop()})}},!1),t.addEventListener("MSGestureEnd",function(t){t.stopPropagation();var r=t.target._slider;if(r){if(r.animatingTo===r.currentSlide&&!v&&null!==o){var s=f?-o:o,c=s>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(c)&&(Number(new Date)-l<550&&Math.abs(s)>50||Math.abs(s)>a/2)?r.flexAnimate(c,r.vars.pauseOnAction):h||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}e=null,n=null,o=null,i=null,y=0}},!1)):(c=function(s){m=s.touches[0].pageX,g=s.touches[0].pageY,o=d?e-g:e-m;!(v=d?Math.abs(o)500?(s.preventDefault(),!h&&r.transitions&&(r.vars.animationLoop||(o/=0===r.currentSlide&&o<0||r.currentSlide===r.last&&o>0?Math.abs(o)/a+2:1),r.setProps(i+o,"setTouch"))):t.removeEventListener("touchmove",c,!1)},u=function(s){if(t.removeEventListener("touchmove",c,!1),r.animatingTo===r.currentSlide&&!v&&null!==o){var d=f?-o:o,p=d>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(p)&&(Number(new Date)-l<550&&Math.abs(d)>50||Math.abs(d)>a/2)?r.flexAnimate(p,r.vars.pauseOnAction):h||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",u,!1),e=null,n=null,o=null,i=null})},resize:function(){!r.animating&&r.is(":visible")&&(p||r.doMath(),h?m.smoothHeight():p?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):d?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&m.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(e){if(!d||h){var t=h?r:r.viewport;e?t.animate({height:r.slides.eq(r.animatingTo).height()},e):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var n=e(r.vars.sync).data("flexslider"),i=r.animatingTo;switch(t){case"animate":n.flexAnimate(i,r.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(t){return t.find("[id]").each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t0?setTimeout(r.play,r.vars.initDelay):r.play()})}},isHidden:function(){return document[m.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){u=""},3e3)}},r.flexAnimate=function(t,n,i,a,s){if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),v&&1===r.pagingCount&&(r.direction=r.currentItemr.limit&&1!==r.visible?r.limit:y):g=0===r.currentSlide&&t===r.count-1&&r.vars.animationLoop&&"next"!==r.direction?f?(r.count+r.cloneOffset)*w:0:r.currentSlide===r.last&&0===t&&r.vars.animationLoop&&"prev"!==r.direction?f?0:(r.count+1)*w:f?(r.count-1-t+r.cloneOffset)*w:(t+r.cloneOffset)*w,r.setProps(g,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd"+r.vars.eventNamespace+" transitionend"+r.vars.eventNamespace),r.container.bind("webkitTransitionEnd"+r.vars.eventNamespace+" transitionend"+r.vars.eventNamespace,function(){r.wrapup(w)})):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(w)})}r.vars.smoothHeight&&m.smoothHeight(r.vars.animationSpeed)}},r.wrapup=function(e){h||p||(0===r.currentSlide&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(e,"jumpEnd"):r.currentSlide===r.last&&0===r.animatingTo&&r.vars.animationLoop&&r.setProps(e,"jumpStart")),r.animating=!1,r.currentSlide=r.animatingTo,r.vars.after(r)},r.animateSlides=function(){r.animating||r.flexAnimate(r.getTarget("next"))},r.pause=function(){clearInterval(r.animatedSlides),r.animatedSlides=null,r.playing=!1,r.vars.pausePlay&&m.pausePlay.update("play"),r.syncExists&&m.sync("pause")},r.play=function(){r.playing&&clearInterval(r.animatedSlides),r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed),r.started=r.playing=!0,r.vars.pausePlay&&m.pausePlay.update("pause"),r.syncExists&&m.sync("play")},r.stop=function(){r.pause(),r.stopped=!0},r.canAdvance=function(e,t){var n=v?r.pagingCount-1:r.last;return!!t||(!(!v||r.currentItem!==r.count-1||0!==e||"prev"!==r.direction)||(!v||0!==r.currentItem||e!==r.pagingCount-1||"next"===r.direction)&&(!(e===r.currentSlide&&!v)&&(!!r.vars.animationLoop||(!r.atEnd||0!==r.currentSlide||e!==n||"next"===r.direction)&&(!r.atEnd||r.currentSlide!==n||0!==e||"next"!==r.direction))))},r.getTarget=function(e){return r.direction=e,"next"===e?r.currentSlide===r.last?0:r.currentSlide+1:0===r.currentSlide?r.last:r.currentSlide-1},r.setProps=function(e,t,n){var i=function(){var n=e||(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo;return-1*function(){if(p)return"setTouch"===t?e:f&&r.animatingTo===r.last?0:f?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:n;switch(t){case"setTotal":return f?(r.count-1-r.currentSlide+r.cloneOffset)*e:(r.currentSlide+r.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return f?e:r.count*e;case"jumpStart":return f?r.count*e:e;default:return e}}()+"px"}();r.transitions&&(i=d?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",n=void 0!==n?n/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",n),r.container.css("transition-duration",n)),r.args[r.prop]=i,(r.transitions||void 0===n)&&r.container.css(r.args),r.container.css("transform",i)},r.setup=function(t){if(h)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&m.smoothHeight();else{var n,i;"init"===t&&(r.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,f&&(i=e.makeArray(r.slides).reverse(),r.slides=e(i),r.container.empty().append(r.slides))),r.vars.animationLoop&&!p&&(r.cloneCount=2,r.cloneOffset=1,"init"!==t&&r.container.find(".clone").remove(),m.uniqueID(r.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(r.container),m.uniqueID(r.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(r.container)),r.newSlides=e(r.vars.selector,r),n=f?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset,d&&!p?(r.container.height(200*(r.count+r.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"}),r.doMath(),r.viewport.height(r.h),r.setProps(n*r.h,"init")},"init"===t?100:0)):(r.container.width(200*(r.count+r.cloneCount)+"%"),r.setProps(n*r.computedW,"init"),setTimeout(function(){r.doMath(),r.newSlides.css({width:r.computedW,float:"left",display:"block"}),r.vars.smoothHeight&&m.smoothHeight()},"init"===t?100:0))}p||r.slides.removeClass(o+"active-slide").eq(r.currentSlide).addClass(o+"active-slide"),r.vars.init(r)},r.doMath=function(){var e=r.slides.first(),t=r.vars.itemMargin,n=r.vars.minItems,i=r.vars.maxItems;r.w=void 0===r.viewport?r.width():r.viewport.width(),r.h=e.height(),r.boxPadding=e.outerWidth()-e.width(),p?(r.itemT=r.vars.itemWidth+t,r.minW=n?n*r.itemT:r.w,r.maxW=i?i*r.itemT-t:r.w,r.itemW=r.minW>r.w?(r.w-t*(n-1))/n:r.maxWr.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.mover.w?r.itemW*(r.count-1)+t*(r.count-1):(r.itemW+t)*r.count-r.w-t):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1),r.computedW=r.itemW-r.boxPadding},r.update=function(e,t){r.doMath(),p||(er.controlNav.length?m.controlNav.update("add"):("remove"===t&&!p||r.pagingCountr.last&&(r.currentSlide-=1,r.animatingTo-=1),m.controlNav.update("remove",r.last))),r.vars.directionNav&&m.directionNav.update()},r.addSlide=function(t,n){var i=e(t);r.count+=1,r.last=r.count-1,d&&f?void 0!==n?r.slides.eq(r.count-n).after(i):r.container.prepend(i):void 0!==n?r.slides.eq(n).before(i):r.container.append(i),r.update(n,"add"),r.slides=e(r.vars.selector+":not(.clone)",r),r.setup(),r.vars.added(r)},r.removeSlide=function(t){var n=isNaN(t)?r.slides.index(e(t)):t;r.count-=1,r.last=r.count-1,isNaN(t)?e(t,r.slides).remove():d&&f?r.slides.eq(r.last).remove():r.slides.eq(t).remove(),r.doMath(),r.update(n,"remove"),r.slides=e(r.vars.selector+":not(.clone)",r),r.setup(),r.vars.removed(r)},r.destroy=function(){var t="."+r.vars.namespace;r.vars.controlNav&&r.controlNav.closest(t+"control-nav").remove(),r.vars.directionNav&&r.directionNav.closest(t+"direction-nav").remove(),r.vars.pausePlay&&r.pausePlay.closest(t+"pauseplay").remove(),r.find(".clone").remove(),r.unbind(r.vars.eventNamespace),"fade"!=r.vars.animation&&r.container.unwrap(),r.container.removeAttr("style"),r.container.unbind(r.vars.eventNamespace),r.slides.removeAttr("style"),r.slides.filter(t+"active-slide").removeClass(r.vars.namespace+"active-slide"),r.slides.unbind(r.vars.eventNamespace),e(document).unbind(r.vars.eventNamespace+"-"+r.id),e(window).unbind(r.vars.eventNamespace+"-"+r.id),r.stop(),r.removeData("flexslider")},m.init()},e(window).blur(function(e){focused=!1}).focus(function(e){focused=!0}),e.flexslider.defaults={namespace:"flex-",eventNamespace:".flexslider",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"",nextText:"",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};var t=0;e.fn.flexslider=function(n){if(void 0===n&&(n={}),"object"==typeof n)return this.each(function(){var i=e(this),r=n.selector?n.selector:".slides > li",a=i.find(r);1===a.length&&!0===n.allowOneSlide||0===a.length?(a.fadeIn(400),n.start&&n.start(i)):void 0===i.data("flexslider")&&new e.flexslider(this,n,t++)});var i=e(this).data("flexslider");switch(n){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;case"destroy":i.destroy();break;default:"number"==typeof n&&i.flexAnimate(n,!0)}}}(jQuery),function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";var n={},i={},r=void 0,a=0,o=!1,s=0,l=function(e){var t=n(e),r=e.getAttribute("data-parallax-factor"),a=void 0,o=t.css("transform");e.factor=parseFloat(r||i.factor,10),e.rect={top:t.offset().top,left:t.offset().left,width:t.width(),height:t.height()},e.initialOffset=e.rect.top,"none"!==o&&(a=c(o)),e.transforms=a},c=function(e){var t=e.split("(")[1];t=(t=t.split(")")[0]).split(",");var n=Math.atan2(t[1],t[0]),i=Math.pow(t[0],2)+Math.pow(t[1],2),r=Math.sqrt(i),a=(t[0]*t[3]-t[2]*t[1])/r,o=Math.atan2(t[0]*t[2]+t[1]*t[3],i);return{rotate:n/(Math.PI/180),scaleX:r,scaleY:a,skewX:o/(Math.PI/180),skewY:0,translateX:t[4],translateY:t[5]}},u=function(e,t){var i=n(e),r=i.offset().top-a,o=e.factor;""===i.data("parallax-remove-general-offset")&&(r+=s),""===i.data("parallax-remove-initial-offset")&&(r-=e.initialOffset),"bottom"===t&&(o*=-1);var l=Math.floor(r/o),c=0;!1!==function(e){var t=n(window),i=t.scrollTop(),r=e.offset().top;return r+e.height()>=i&&r-(e.data("appear-top-offset")||0)<=i+t.height()}(i)&&i.hasClass("parallax-scroll-container-calculated")&&(i.hasClass("parallax-scroll-container-hide")&&!i.siblings(".mbYTP_wrapper").length&&i.removeClass("parallax-scroll-container-hide"),i.data("parallax-position-x")&&(c=i.data("parallax-position-x")),i.css({transform:function(e,t,n){var i="translate3d("+t+", "+n+"px, 0) ";return e?(e.skewX||e.skewY,e.scaleX||e.scaleY,i):i}(e.transforms,c,l)}))},d=function(){a<=0&&(o=!1);for(var e="top",t=0;t0&&function(){for(var e=0;e0&&(h(),f(),n(window).on("scroll",f)),n(window).on("resize load",h)}};if(window.jQuery||window.$)v(window.jQuery);else{if(!e.exports)throw Error("Hongkong:Please make jQuery available globally.");e.exports=v}}]);